<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="test.GetData"%>
<%@page import="java.util.*"%>
<%@page import="java.sql.*"%>
<head>
<link rel="shortcut icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>testeeeeee</title>
<script type="text/javascript">
var msg="${msg}";
if(msg){
	//alert(msg);
}

function fillend(val,val2){
	document.getElementById("en").innerHTML=val;
	document.getElementById("es").innerHTML=val2;
}
</script>
</head>
<body>
共有:${fn:length(rs) }      &nbsp;&nbsp;最后值：${sf }<br>
最后一行:name:<div id="en"></div> salary:<div id="es"></div>  
<hr>
<table border="1">
  <tr>
  <th>id</th>
    <th>name</th>
    <th>salary</th>
  </tr>
  
<c:forEach var="m" items="${rs}" varStatus="status">
	<tr>
		<td>${status.count}</td>
		<td>${m["name"] }</td>
		<td>${m["salary"] }</td>
		<c:set var="name" value="${m['name'] }"></c:set>
		<c:set var="salary" value="${m['salary'] }"></c:set>
	</tr>
</c:forEach>
<script>fillend("${name}","${salary}");</script>
</table>	
</body>



</html>